<@t.html>
<@t.container title="会员管理" icon="users" >
  	       <!--operator-->
  	       <@t.btn_a name="添加会员" icon="plus" href="admin/user/toAdd"/>
  	       <@t.btn_b name="删除会员" icon="trash" onclick="batchDeleteFun('admin/user/delete');" />
  		   <@t.dt>
  		   		 <@t.dtheader>
						 <@t.column title="ID" />
						 <@t.column title="电子邮箱" />
						 <@t.column title="昵称" />
						 <@t.column title="性别" />
						 <@t.column title="账号状态" />
				</@t.dtheader>
  			<@t.dtbody>
  				 <#list page.list as a>
                     <tr onclick="checkDataGridRow('${a.id}');">
                      	<td><input name='SelectedID' id="select_${a.id}" value="${a.id}" type="checkbox"></td>
                        <td>${a.email}</td>
						<td>${a.nickname}</td>
						<td><@t.code defVal="${a.sex}" datas={"1":"男", "2":"女","3":"未知"} /></td>
						<td><@t.code defVal="${a.state}" datas={"1":"正常", "2":"封号","3":"未激活"} /></td>
						<td>${a.date}</td>
                        <td>
                        	<@t.btn_b name="删除" size="btn-xs" icon="trash" onclick="batchDeleteFun('admin/user/delete','${a.id}');" />
							<@t.btn_a name="修改" size="btn-xs" icon="pencil" href="admin/user/toAdd?id=${a.id}"/>
							<@t.btn_group name="账号操作">
								<@t.btn_group_menu name="封号" onclick="change_account('2','${a.id}');"></@t.btn_group_menu>
								<@t.btn_group_menu name="未激活" onclick="change_account('3','${a.id}');"></@t.btn_group_menu>
								<@t.btn_group_menu name="正常" onclick="change_account('1','${a.id}');"></@t.btn_group_menu>
							</@t.btn_group>
						</td>
                     </tr>
				 </#list>
  			</@t.dtbody>
  		</@t.dt>
  		<!--pager-->
  		<@t.back_pager objCount=page.totalRow pageSize=page.pageSize pageNum=page.pageNumber pageCount=page.totalPage></@t.back_pager>
  </@t.container>
<script type="text/javascript">
			function change_account(state,uid){
				$ .axs("admin/user/change_state","state="+state+"&id="+uid);
			}
</script>
</@t.html>